<template>
<!-- 客户、渠道分配 -->
  <div>

    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span style="line-height: 36px;">渠道列表</span>
      </div>
      <organizaiton-list  :userList="userList" v-if="compleated">
      </organizaiton-list>

    </el-card>
    <div class="space20">
    </div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span style="line-height: 36px;">无渠道客户列表</span>
      </div>
      <custom-list :userList="userList" v-if="compleated">
      </custom-list>
    </el-card>
  </div>
</template>
<script>
import api from "@/js/api";
import customList from "@/components/Crm/customAllocation";
import organizationList from "@/components/Crm/OrganizationAllocation";
export default {
  data() {
    return {
      userList:[],
      compleated:false
    };
  },
  components: {
    "custom-list": customList,
    "organizaiton-list": organizationList
  },
  created() {
    let that = this;
    api.AdminGetList(that, {}, function(msg) {      
      that.userList=msg.Result;     
      that.compleated=true;
    });
  }
};
</script>
